package org.example.netty.thread;

import java.lang.ref.WeakReference;

/**
 * 自定义ThreadLocal
 */
public class CustomThreadLocal {

    static class CustomThreadLocalMap {

        /**
         * 内部条目
         */
        static class Entry extends WeakReference<CustomThreadLocal> {
            Object value;

            public Entry(CustomThreadLocal referent, Object value) {
                super(referent);
                this.value = value;
            }
        }

    }
}
